Python | Calculate City Block Distance
City block distance is generally calculated between 2-coordinates of a paired object. It is the summation of absolute difference between 2-coordinates. The city block distance of 2-points a and b with k dimension is mathematically calculated using below formula:...
read more
Cayley Table and Cyclic group | Mathematics
...
read more
Mathematics | Area of the surface of solid of revolution
...
read more
Multiplicative Congruence method for generating Pseudo Random Numbers
Multiplicative Congruential Method (Lehmer Method) is a type of linear congruential generator for generating pseudorandom numbers in a specific range. This method can be defined as:...
read more
National Instruments Interview Experience (Off-campus)
Hiring was for Internship. The first round was a coding test on HackerEarth. There were two questions. Both carried 100 marks each....
read more
Functions in Discrete Mathematics
Functions are an important part of discrete mathematics. This article is all about functions, their types, and other details of functions. A function assigns exactly one element of a set to each element of the other set. Functions are the rules that assign one input to one output. The function can be represented as f: A ⇢ B. A is called the domain of the function and B is called the codomain function....
read more
Difference between Bisection Method and Newton Raphson Method
Numerical methods are the set of tasks by applying arithmetic operations to numerical equations. We can formulate mathematical problems to find the approximate result. This formulation is called the numerical implementation of the problem. In this, there is no need for algorithms. Programming logic is then developed for numerical implementation. The programming is usually done with some high-level languages like Fortran, Basic, etc....
read more
Discrete Mathematics Tutorial
Discrete Mathematics is a branch of mathematics that is concerned with “discrete” mathematical structures instead of “continuous”. Discrete mathematical structures include objects with distinct values like graphs, integers, logic-based statements, etc. In this tutorial, we have covered all the topics of Discrete Mathematics for computer science like set theory, recurrence relation, group theory, and graph theory....
read more
Program to differentiate the given Polynomial
Given polynomial string str, the task is to differentiate the given string and print the string after differentiating it. Note: The input format is such that there is a white space between a term and the ‘+’, ’-’ symbolExamples:...
read more
Paired T-Test – A Detailed Overview
Student’s t-test or t-test is the statistical method used to determine if there is a difference between the means of two samples. The test is often performed to find out if there is any sampling error or unlikeliness in the experiment. This t-test is further divided into 3 types based on your data and result need. The types are:...
read more
Application of Derivative – Maxima and Minima | Mathematics
...
read more
Expected Number of Trials to get N Consecutive Heads
Given a number N. The task is to find the expected number of times a coin must be flipped to get N heads consecutively.Example:...
read more